﻿namespace RookieGrow.Domain.SportsStore
{
    public class AnotherDiscounter : IDiscounter
    {
        private decimal discountRate;

        public AnotherDiscounter(decimal discountParam) 
        {
            this.discountRate = discountParam;
        }

        public decimal ApplyDiscount(decimal totalPrice) 
        {
            return (totalPrice - (discountRate / 100m * totalPrice));
        }
    }
}
